package com.zjb.demo.common.config;

import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;

/**
 * @author 庄佳彬
 * @since 2023/12/23 15:39
 */
@Configuration
@Inject("${solon.app}")
public class AppConfig {
    private String name;
    private String group;

    private String version;
    private String buildTime;

    private String localFilePath;

    private boolean captchaEnabled = false;

    private int maxRetryCount = 5;
    private int lockTime = 10 * 60;

    public String getName() {
        return name;
    }

    public String getGroup() {
        return group;
    }

    public String getVersion() {
        return version;
    }

    public String getBuildTime() {
        return buildTime;
    }

    public boolean getCaptchaEnabled() {
        return captchaEnabled;
    }

    public void setCaptchaEnabled(boolean captchaEnabled) {
        this.captchaEnabled = captchaEnabled;
    }

    public String getLocalFilePath() {
        return localFilePath;
    }

    public void setLocalFilePath(String localFilePath) {
        this.localFilePath = localFilePath;
    }


    public int getMaxRetryCount() {
        return maxRetryCount;
    }

    public int getLockTime() {
        return lockTime;
    }

    public void setMaxRetryCount(int maxRetryCount) {
        this.maxRetryCount = maxRetryCount;
    }

    public void setLockTime(int lockTime) {
        this.lockTime = lockTime;
    }
}
